package cn.ecut.service;

import cn.ecut.mapper.RepairMapper;
import cn.ecut.model.Repair;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RepairService {
    @Autowired
    RepairMapper repairMapper;
    public  void insertRepair(Repair repair){
        repairMapper.insertRepair(repair);
    }
    public Repair getRepairInfo(String userId){
        return repairMapper.getRepairInfo(userId);
    }
    public void updateReapir(Repair repair){
        repairMapper.updateReapir(repair);
    }
}
